<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
	
	<head><title>IGNORED</title></head>
	
	<body>
		<ui:composition>
			<div id="header">	
				<div id="logo">
					<h1>HEADER</h1>
					 <h:form prependId="false" id="formLogin">
			        	<p:commandButton value="Log In" 
									   id="loginBtn" 
					                   oncomplete="logintConfirmation.show()"
					                   image="ui-icon ui-icon-locked"/>	
						<p:dialog header="Log In"
								  modal="true"
								  widgetVar="logintConfirmation"
								  width="400"
								  height="250"
								  styleClass="login">
							<p:outputPanel>
									<h:panelGrid columns="2" id="grid">
										<h:outputLabel value="Usuario : *" for="j_username"></h:outputLabel>
										<p:inputText id="j_username" name="j_username" value="#{loginHandler.username}" required="true" size="40" />
										<h:outputLabel value="Password : *" for="j_password"></h:outputLabel>
										<p:inputText id="j_password" name="j_password" value="#{loginHandler.password}" required="true" size="40" />
									</h:panelGrid>
									<p:commandButton value="Entrar" id="j_submitLogin"
											action="#{loginHandler.login}" ajax="false" 
											style="text-align: center;" />
							</p:outputPanel>
						</p:dialog>
					</h:form>
				</div>
				<div id="layoutdims"></div>
			</div>
		</ui:composition>
	</body>
	
</html>